package com.lnking.lnkingplace.controller;

import com.lnking.common.http.ReturnResult;
import com.lnking.lnkingplace.model.request.record.user.RecordUserSearchRequest;
import com.lnking.lnkingplace.service.IPersonalCheckInfoService;
import com.lnking.lnkingplace.service.IRecordUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "数据上传")
@RequestMapping("/test")
public class TestController {

    @Autowired
    IRecordUserService recordUserService;

    @Autowired
    IPersonalCheckInfoService personalCheckInfoService;

    @ApiOperation("查询列表")
    @GetMapping("/write")
    public ReturnResult write() {
        recordUserService.write();
        return ReturnResult.success();
    }

    @ApiOperation("查询列表")
    @GetMapping("/read")
    public ReturnResult read() {
        recordUserService.read();
        return ReturnResult.success();
    }

    @ApiOperation("查询列表")
    @GetMapping("/set")
    public ReturnResult set() {
        personalCheckInfoService.setX();
        return ReturnResult.success();
    }
}
